SDL_CFLAGS=$(shell sdl-config --cflags)
SDL_LDFLAGS=$(shell sdl-config --libs)

SRCS=$(shell find src -name "*.cpp")# -exec basename {} \;)
OBJS=$(SRCS:.cpp=.o)

test_Level:
	g++ $(CFLAGS) $(SDL_CFLAGS) $(SDL_LDFLAGS) -lSDL_image -o test_Level $(SRCS)

#.cpp.o:
#	g++ $(CFLAGS) $(SDL_CFLAGS) -I./src -c src/$< -o src/$@

clean:
	\rm -f src/*.o
	\rm -f test_Level

depend:
	makedepend -- -I./src -- $(SRCS)

